<script setup>
import { useRouter } from 'vue-router'
import { onMounted } from 'vue'
import { useRegisterStore } from '@/stores/register'
const store = useRegisterStore()
const router = useRouter()

const goBack = () => {
  if(store.fromRegister){
    store.acceptAgreement()
    router.push('/sign')
  }else{
    router.go(-1)
  }
}

onMounted(()=>{
  window.scrollTo(0,0)
})
</script>

<template>
  <div class="agreement-container">
    <div class="agreement-content">
      <header>
        <h1>User Agreement of Shanghai ZhimouST Company</h1>
        <div class="company-info">Shanghai ZhimouST Company(Unified Social Credit Code: XXXXXXXXXXXXXXX)
        </div>
        <div class="update-date">Updated: July 6, 2025</div>
      </header>

      <div class="toc">
        <div class="toc-title">Table of Contents</div>w
        <div class="toc-list">
          <ol>
            <li>Scope of Agreement</li>
            <li>Service Description</li>
            <li>Account Registration and Management</li>
            <li>User Rights and Obligations</li>
            <li>Company Rights and Obligations</li>
            <li>Intellectual Property Protection</li>
            <li>Data and Privacy Protection</li>
            <li>Service Fees and Payment</li>
            <li>Disclaimer</li>
            <li>Agreement Modification and Termination</li>
            <li>Governing Law and Dispute Resolution</li>
            <li>Miscellaneous Provisions</li>
          </ol>
        </div>
      </div>

      <section>
        <h2>1. Scope of Agreement</h2>
        <p>This User Agreement (hereinafter "Agreement") constitutes a legally binding contract between you (hereinafter
          "User") and Shanghai ZhimouST Company. (hereinafter "Company" or "Zhimou Tech") regarding the
          vehicle component failure diagnostic services and related products provided by the Company.</p>
        <p>
          This Agreement applies to all services provided by the Company through websites, mobile applications, API
          interfaces, and other means. Before using any of the Company's services, users should carefully read and fully
          understand the entire content of this Agreement. By clicking "Agree", actually using the services, or
          otherwise confirming acceptance of this Agreement, the user indicates that they have fully understood and
          agreed to be bound by all terms of this Agreement.
        </p>
      </section>

      <section>
        <h2>2. Service Description</h2>
        <h3>2.1 Core Services</h3>
        <p>Leveraging its self-developed large-scale AI models, Zhimou Tech provides the following vehicle component
          failure detection services:</p>
        <ul>
          <li><strong>Intelligent Diagnostic Service</strong>: Predicts component failure probability using AI models
            based on vehicle sensor data, maintenance history, and real-time operating parameters</li>
          <li><strong>Preventive Maintenance Recommendations</strong>: Provides optimal maintenance cycles and
            replacement suggestions based on component wear models</li>
          <li><strong>Failure Root Cause Analysis</strong>: Conducts multidimensional analysis of complex failures to
            identify underlying causes</li>
          <li><strong>Real-time Monitoring Alerts</strong>: Continuously monitors critical components and provides
            immediate alerts for abnormal conditions</li>
        </ul>

        <h3>2.2 Service Formats</h3>
        <p>The Company's services are provided in multiple formats:</p>
        <ul>
          <li><strong>SaaS Platform</strong>: Web-based vehicle management platform</li>
          <li><strong>Mobile Applications</strong>: iOS and Android mobile apps</li>
          <li><strong>API Interface Services</strong>: System integration interfaces for enterprise clients</li>
          <li><strong>Embedded Systems</strong>: On-board diagnostic device integration solutions</li>
        </ul>

        <div class="highlight">
          <p><strong>Special Note:</strong> The Company's AI diagnostic results are based on data models and algorithmic
            analysis, which are probabilistic in nature and cannot replace manual diagnosis by professional mechanics.
            Users should make decisions based on actual circumstances combined with professional advice.</p>
        </div>
      </section>

      <section>
        <h2>3. Account Registration and Management</h2>
        <h3>3.1 Registration Eligibility</h3>
        <p>User registration must meet the following conditions:</p>
        <ul>
          <li>Individual users must be at least 18 years old and have full civil capacity</li>
          <li>Enterprise users must provide valid business licenses</li>
          <li>Users must not be listed as dishonest judgment debtors</li>
        </ul>

        <h3>3.2 Account Security</h3>
        <p>Users are responsible for properly safeguarding account information and passwords:</p>
        <ul>
          <li>Shall not transfer or lend accounts to any third party</li>
          <li>Shall bear legal responsibility for all operations under the account</li>
          <li>Must immediately notify the Company of any unauthorized use</li>
        </ul>

        <h3>3.3 Account Deletion</h3>
        <p>Users may delete accounts through written request. After account deletion:</p>
        <ul>
          <li>Access to services will be terminated</li>
          <li>The Company reserves the right to retain user historical data for compliance purposes</li>
          <li>Outstanding fees remain payable</li>
        </ul>
      </section>

      <section>
        <h2>4. User Rights and Obligations</h2>
        <h3>4.1 User Rights</h3>
        <p>Users enjoy the following rights:</p>
        <ul>
          <li>Use all services in accordance with this Agreement</li>
          <li>Obtain accurate diagnostic reports and maintenance recommendations</li>
          <li>Request explanations of services from the Company</li>
          <li>Provide feedback on service quality</li>
        </ul>

        <h3>4.2 User Obligations</h3>
        <p>Users must fulfill the following obligations:</p>
        <ul>
          <li>Provide truthful, accurate, and complete vehicle information and operational data</li>
          <li>Correctly install and use diagnostic equipment per technical requirements</li>
          <li>Timely payment of service fees (if applicable)</li>
          <li>Comply with national laws and all terms of this Agreement</li>
          <li>Shall not use services for any illegal activities</li>
        </ul>

        <h3>4.3 Data Requirements</h3>
        <p>To ensure diagnostic accuracy, users must provide:</p>
        <ol>
          <li>Basic vehicle information (brand, model, production year, mileage)</li>
          <li>Vehicle Identification Number (VIN)</li>
          <li>Real-time sensor data (collected via OBD interface)</li>
          <li>Historical maintenance records (if applicable)</li>
        </ol>
      </section>

      <section>
        <h2>5. Company Rights and Obligations</h2>
        <h3>5.1 Service Provision</h3>
        <p>The Company commits to:</p>
        <ul>
          <li>Providing failure diagnostic services meeting industry standards</li>
          <li>Continuously optimizing AI models to improve diagnostic accuracy</li>
          <li>Performing regular system maintenance and upgrades</li>
          <li>Establishing comprehensive technical support systems</li>
        </ul>

        <h3>5.2 Service Limitations</h3>
        <p>The Company reserves the right to restrict or terminate services under these circumstances:</p>
        <ul>
          <li>User provides false or incomplete data</li>
          <li>User equipment fails to meet technical requirements</li>
          <li>Necessary system maintenance or upgrades</li>
          <li>Force majeure events</li>
          <li>User violates this Agreement</li>
        </ul>

        <h3>5.3 Model Updates and Optimization</h3>
        <p>The Company will continuously improve AI diagnostic models:</p>
        <ul>
          <li>Monthly updates to core algorithm models</li>
          <li>Quarterly expansion of component failure knowledge base</li>
          <li>Annual third-party evaluation of diagnostic accuracy</li>
        </ul>
      </section>

      <section>
        <h2>6. Intellectual Property Protection</h2>
        <h3>6.1 Company Intellectual Property</h3>
        <p>The Company owns intellectual property rights to:</p>
        <ul>
          <li>AI diagnostic models and core algorithms</li>
          <li>Software systems and UI designs</li>
          <li>Data analysis methods and technical documentation</li>
          <li>Brand identifiers and service trademarks</li>
        </ul>
        <p>Without written permission, users may not copy, modify, reverse engineer, or commercially exploit the above
          content.</p>

        <h3>6.2 User Data Rights</h3>
        <p>Users retain ownership of provided data but grant the Company:</p>
        <ul>
          <li>Rights to use data for service provision</li>
          <li>Rights to conduct anonymized analysis for service improvement</li>
          <li>Rights to use desensitized data for new feature development</li>
        </ul>

        <h3>6.3 Diagnostic Report Rights</h3>
        <p>For diagnostic reports generated from user data:</p>
        <ul>
          <li>Users own usage rights to report content</li>
          <li>The Company may use anonymized reports for case studies</li>
          <li>Complete reports shall not be disclosed to third parties without mutual consent</li>
        </ul>
      </section>

      <section>
        <h2>7. Data and Privacy Protection</h2>
        <h3>7.1 Data Collection Scope</h3>
        <p>The Company collects only necessary data for service provision:</p>
        <ul>
          <li>Vehicle identification information (VIN, license plate)</li>
          <li>Vehicle operating parameters (RPM, temperature, voltage, etc.)</li>
          <li>Fault codes and historical records</li>
          <li>Essential user contact information</li>
        </ul>

        <h3>7.2 Data Usage Standards</h3>
        <p>Collected data is used solely for:</p>
        <ol>
          <li>Providing failure diagnostic services</li>
          <li>Improving AI algorithms</li>
          <li>Generating statistical analysis reports</li>
          <li>Enhancing user experience</li>
        </ol>

        <h3>7.3 Data Protection Measures</h3>
        <p>The Company employs industry-standard security measures:</p>
        <ul>
          <li>TLS 1.3 encryption for data transmission</li>
          <li>AES-256 encryption for sensitive data storage</li>
          <li>Regular security audits and penetration testing</li>
          <li>Strict access control policies</li>
        </ul>

        <div class="highlight">
          <p><strong>Privacy Commitment:</strong> The Company will never sell user data. Data sharing is limited to
            essential service partners and bound by strict confidentiality agreements.</p>
        </div>
      </section>

      <section>
        <h2>8. Service Fees and Payment</h2>
        <h3>8.1 Pricing Models</h3>
        <p>The Company offers multiple service packages:</p>
        <ul>
          <li><strong>Basic Plan</strong>: Pay-per-diagnosis (¥10/diagnosis)</li>
          <li><strong>Professional Plan</strong>: Monthly subscription (¥199/month)</li>
          <li><strong>Enterprise Plan</strong>: Custom solutions (contact sales)</li>
        </ul>

        <h3>8.2 Payment Methods</h3>
        <p>Supported payment options:</p>
        <ul>
          <li>Alipay, WeChat Pay</li>
          <li>UnionPay Online</li>
          <li>Corporate bank transfer</li>
        </ul>

        <h3>8.3 Invoice Policy</h3>
        <p>Users may request invoices after payment:</p>
        <ul>
          <li>Individual users receive standard invoices</li>
          <li>Enterprise users receive special VAT invoices</li>
          <li>Invoices mailed within 7 business days of request</li>
        </ul>
      </section>

      <section>
        <h2>9. Disclaimer</h2>
        <h3>9.1 Service Nature Statement</h3>
        <p>Users understand and agree:</p>
        <ul>
          <li>AI diagnostic results have inherent error rates and should not be the sole decision-making basis</li>
          <li>The Company is not liable for direct/indirect losses from diagnostic results</li>
          <li>Complex failures require professional mechanic inspection</li>
        </ul>

        <h3>9.2 Liability Limitations</h3>
        <p>To the extent permitted by law:</p>
        <ul>
          <li>Services are provided "as-is" without warranties</li>
          <li>No liability for service interruptions due to force majeure</li>
          <li>Users bear responsibility for improper operation</li>
        </ul>

        <h3>9.3 Third-Party Responsibility</h3>
        <p>Users acknowledge:</p>
        <ul>
          <li>Services may include third-party content or links</li>
          <li>The Company is not responsible for third-party content</li>
          <li>Users should assess risks when using third-party services</li>
        </ul>
      </section>

      <section>
        <h2>10. Agreement Modification and Termination</h2>
        <h3>10.1 Agreement Modifications</h3>
        <p>The Company may revise this Agreement as needed:</p>
        <ul>
          <li>Changes notified via website announcements, emails, etc.</li>
          <li>Continued service use constitutes acceptance of new terms</li>
          <li>Users may terminate services if disagreeing with changes</li>
        </ul>

        <h3>10.2 Agreement Termination</h3>
        <p>This Agreement terminates under these circumstances:</p>
        <ul>
          <li>User-initiated account deletion</li>
          <li>Material breach of agreement terms by user</li>
          <li>Company discontinuation of relevant services</li>
          <li>Legal requirement for termination</li>
        </ul>

        <h3>10.3 Post-Termination Handling</h3>
        <p>After termination:</p>
        <ul>
          <li>Users must settle all outstanding payments</li>
          <li>The Company will handle user data per privacy policy</li>
          <li>Intellectual property clauses remain effective</li>
        </ul>
      </section>

      <section>
        <h2>11. Governing Law and Dispute Resolution</h2>
        <h3>11.1 Governing Law</h3>
        <p>This Agreement is governed by the laws of the People's Republic of China.</p>

        <h3>11.2 Dispute Resolution</h3>
        <p>Parties shall resolve disputes through friendly negotiation. If unresolved:</p>
        <ul>
          <li>Either party may apply to Shanghai Arbitration Commission</li>
          <li>Arbitration awards are final and binding</li>
        </ul>

        <h3>11.3 Jurisdiction</h3>
        <p>For litigation, jurisdiction lies with the People's Court where the Company is located.</p>
      </section>

      <section>
        <h2>12. Miscellaneous Provisions</h2>
        <h3>12.1 Agreement Completeness</h3>
        <p>This Agreement constitutes the entire understanding between parties, superseding all prior agreements.</p>

        <h3>12.2 Severability</h3>
        <p>If any provision is invalid, remaining provisions remain effective.</p>

        <h3>12.3 Notices</h3>
        <p>The Company may deliver notices via:</p>
        <ul>
          <li>Website announcements</li>
          <li>Registered email</li>
          <li>SMS notifications</li>
        </ul>

        <div class="contact-info">
          <h3>Contact Us</h3>
          <p>Shanghai ZhimouST Company.</p>
          <p>Address: Next to Shanghai Polytechnic University, Pudong New District, Shanghai</p>
          <p>Customer Service: 400-XXX-XXXX</p>
          <p>Email: support@zhimou-tech.com</p>
          <p>Official Website: www.zhimou-tech.com</p>
        </div>
      </section>

      <button @click="goBack()">Agree and Return</button>

      <footer>
        <p>© 2025 Shanghai ZhimouST Company All Rights Reserved</p>
        <p>Shanghai ICP No.XXXXXXXX | Shanghai Public Network Security No.XXXXXXXXXXXXX</p>
      </footer>
    </div>
  </div>
</template>

<style scoped>
@import url('@/assets/styles/agreement.css');
</style>